<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?>
<p>View a file to edit the contents of the file. Do NOT delete an inifile without consulting someone (namely Dups or Craig) as it may adversely effect BigDaddy or even stop it from functioning.</p>


<div class="orgbar">
<span class="text">
<p>INI Files</p>
</span>

</div>

<table border="0" cellpadding="0" cellspacing="0" width="97%">

<?

$aIniFiles = $BigDaddyData->GetIniFiles();

if (!is_array($aIniFiles))
{
?>
	<tr valign="middle">
	<td class="lineitem">
	<div align="center"><b>No inifiles in the database</b></div>
	</td>
	</tr>
<?
}
else
{
	foreach ($aIniFiles as $nIndex => $row)
	{
?>

	<tr valign="middle">
		<td class="lineitem" width="200">
			<a href="<?=$_SERVER["PHP_SELF"];?>?page=MonIniView&iniID=<?=$row["ID"];?>"><?=$row["ID"];?></a>
		</td>
		<td class="lineitem" width="200">
			<a href="<?=$_SERVER["PHP_SELF"];?>?page=MonIniView&iniID=<?=$row["ID"];?>"><?=$row["name"];?></a>
		</td>
		<td class="lineitem" nowrap>
		<div class="buttons">
		
		<?
		if ($BigDaddy->IsUserAllowedByAction("meta-admin"))
		{
			?>
			<a href="/monitor/query_inifile.php?action=deleteini&iniID=<?=$row["ID"];?>" onclick="javascript: return confirm('Delete this IniFile: <?=$row["name"];?>');">delete</a>
			<?
		}
		else
		{
			?>
			<span class="dead">delete</span>
			<?
		}
		?>
		

</div>
</td>
</tr>
<?
	}
}
?>

</table>
